class ztq:
    num=0

    def addnum(self):
        num=2
        self.num=3
        print(num)
        print(self.num)

z=ztq()
z.addnum()
print(z.num)

